home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
business
/
whatdate.zip
/
WHATDATE.DOC
< prev
next >
Wrap
Text File
|
1996-01-23
|
3KB
|
99 lines
WHATDATE DOCUMENTATION
Written by E.Kasey Kasemodel
----------------------------------------------------------------------
Registration: None.
This is one of the 100+ utilities included with DATALINKS a
server-based alpha page application. If you are looking to send
alpha pages from your network or from a stand-alone modem, please
check out a copy of DATALINKS. It's really some cool stuff ... and
it works darn well.
POWERLINK is the Windows version that is delivered to you custom
configured with your name/company information embedded within. If
you carry an alpha pager -- you really should take a look at POWERLINK.
It's a heck of a great way for YOU to generate more business with
your pager.
Call (313) 813-0777 for more information
Web: Check out http://apin.com/alphapage
(web site will be active after 1/24/96)
Email: api@cyberspace.org
----------------------------------------------------------------------
This utility is called WHATDATE but you should think of it in this
syntax:
WHATDATE WAS x DAYS AGO?
Where the x is a whole number from 1 to whatever you're looking for.
PROGRAM LOGIC
Using a julian base as the starting point, WHATDATE determines the
julian value of today. Your x value is then subtracted from that
base and is then converted back into a date format. In this
application, the julian base is where 1=January 1st, 1900.
PROGRAM OPERATION
The program is a command line utility designed to be run in batch
files (or from the DOS line). It will output results to the screen
but they can just as easily be redirected to a file using the > symbol.
WHATDATE requires a minimum of one parameter which reprensents the
number of days to subtract.
usage: WHATDATE <days_ago> [switches]
Where days_ago is the number of days from whatever your system
thinks today is.
e.g., WHATDATE 1 would tell you the date yesterday.
Switches Explanation
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/p PREFIX /pGE would write GE date
use _ if you need to include spaces
/q Quite mode. Only show result
/nd No date dividers (12/25/95 becomes 122595)
/dfx date format where x is 1..6 default=YYMMDD
1 = MMDDYY 4 = MMYYYY
2 = MMDDYYYY 5 = DDMMYY
3 = MMYY 6 = DDMMYYYY
WHATDATE SAMPLES
Action/Result What You Enter
-----------------------------------------------------------------
Date of yesterday . . . . . . . . WHATDATE 1
Date a year ago . . . . . . . . . WHATDATE 365
Date 1.5 years ago and
include a GE in front of
the result . . . . . . . . . . . WHATDATE 547 /pGE_
Same as above, but send
the result to a file
named XXX . . . . . . . . . . . WHATDATE 547 /pGE_ >XXX
Do not write stuff
on the screen other
than the result . . . . . . . . . WHATDATE 1 /q
Remove the dividers
in the date output . . . . . . . WHATDATE 1 /q /nd
Report the date in
a MM/YY format . . . . . . . . . WHATDATE 1 /df3